import React from 'react';
import {Router,Route,IndexRoute,hashHistory} from 'react-router';

import 'bootstrap/dist/css/bootstrap.css';
import {Main} from './components/Main.jsx';
import {Home} from './components/Home.jsx';
import {SortView} from './components/SortView.jsx';
import {MoviePageView} from './components/MoviePlayer.jsx';
import {SpView} from './components/SpView.jsx';
var routes = (
  <Router history={hashHistory}>
    <Route path='/' component={Main}>
	  <IndexRoute component={Home} />
	  <Route path='sort/:tid/:sortname/:page/:pagesize' component={SortView} />
	  <Route path='movie/:aid' component={MoviePageView}/>
	  <Route path='movie/:aid/:page' component={MoviePageView}/>
	  <Route path='sp/:spid/:season_id' component={SpView}/>
    </Route>
  </Router>
);

module.exports = routes;